package course.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.StringJoiner;

/**
 * <p>
 *
 * </p>
 *
 * @author HLF
 * @since 2022-06-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class College extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学院id
     */
    private Integer cid;

    /**
     * 学院名称
     */
    private String cname;

    /**
     * 学院地址
     */
    private String caddress;

    /**
     * 学院联系方式
     */
    private String cphone;


    public College(LocalDateTime createTime, String createBy, LocalDateTime updateTime, String updateBy, Integer cid, String cname, String caddress, String cphone) {
        super(createTime, createBy, updateTime, updateBy);
        this.cid = cid;
        this.cname = cname;
        this.caddress = caddress;
        this.cphone = cphone;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", College.class.getSimpleName() + "[", "]")
                .add("cid=" + cid)
                .add("cname='" + cname + "'")
                .add("caddress='" + caddress + "'")
                .add("cphone='" + cphone + "'")
                + super.toString();
    }

}
